package com.xuxu.blog.openfeign;

import com.xuxu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @className: ProductClient
 * @author: Maxuxu
 * @date: 2022/9/2 16:52
 * @description: 获取product的数据
 */
@FeignClient("learning-product")
public interface ProductClient {
    @GetMapping("/product/order/getAllOrder")
    R getAllOrder();

    @GetMapping("/test")
    String call();
}
